package cn.stylefeng.guns.modular.hp.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 专家科室关联关系表
 * </p>
 *
 * @author xzqiang
 * @date 2019-6-10
 */
@TableName("hp_expert_department_link_info")
public class ExpertDepartmentLinkInfo extends Model<ExpertDepartmentLinkInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 专家ID
     */
    private String expertInfoId;
    /**
     * 科室ID(这里科室是在ArticleInfo里维护的，modular=ArticleEnum.DEPARTMENT)
	 * cn.stylefeng.guns.modular.hp.constant.ArticleEnum
     */
    private String departmentInfoId;
    /**
     * 排序
     */
    private Integer pri;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getExpertInfoId() {
        return expertInfoId;
    }

    public void setExpertInfoId(String expertInfoId) {
        this.expertInfoId = expertInfoId;
    }

    public String getDepartmentInfoId() {
        return departmentInfoId;
    }

    public void setDepartmentInfoId(String departmentInfoId) {
        this.departmentInfoId = departmentInfoId;
    }

    public Integer getPri() {
        return pri;
    }

    public void setPri(Integer pri) {
        this.pri = pri;
    }

    @Override
	protected Serializable pkVal() {
		return this.id;
	}

    @Override
    public String toString() {
        return "FriendlyLinkInfo{" +
                "id=" + id +
				"expertInfoId=" + expertInfoId +
				"departmentInfoId=" + departmentInfoId +
                ", pri=" + pri +
                "}";
    }

}
